%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ft=erlang ts=4 sw=4 et

{erl_opts, [debug_info,
            {platform_define, "R14", no_callback_support},
            {platform_define, "^[0-9]+", namespaced_types},
            {platform_define, "^R", no_proxy_sni_support},
            {platform_define, "^(1|(20))", no_customize_hostname_check},
            {platform_define, "^20\.3", buggy_chacha_ciphers}
           ]}.

{erl_first_files,
 ["src/hackney_ssl_certificate.erl" % required by `hackney_ssl' at compile time
 ]}.

{xref_checks, [undefined_function_calls]}.

{cover_enabled, true}.
{eunit_opts, [verbose]}.

{post_hooks, [{clean, "rm -rf *~ */*~ */*.xfm test/*.beam"}]}.

{deps, [
        {idna, "~>6.1.0"},
        {mimerl, "~>1.1"},
        {certifi, "~>2.8.0"},
        {metrics, "~>1.0.0"},
        {parse_trans, "3.3.1"},
        {ssl_verify_fun, "~>1.1.0"},
        {unicode_util_compat, "~>0.7.0"}
       ]}.

{profiles, [{docs, [{deps,
                     [
                      {edown,
                       {git, "https://github.com/uwiger/edown.git",
                        {tag, "0.8.4"}}}
                     ]},

              {edoc_opts, [{doclet, edown_doclet},
                           {packages, false},
                           {subpackages, true},
                           {top_level_readme,
                            {"./README.md", "http://github.com/benoitc/hackney"}}]}]},
             {test, [
               {deps, [{cowboy, "1.1.2"}, {jsone, "1.4.7"}]}
             ]}
           ]}.


%% == Dialyzer ==
%%
{dialyzer, [
  {warnings, [
   race_conditions,
    no_return,
    unmatched_returns,
    error_handling%,
    %unknown
  ]},
  {plt_apps, top_level_deps},
  {plt_extra_apps, []},
  {plt_location, local},
  {plt_prefix, "hackney"},
  {base_plt_location, "."},
  {base_plt_prefix, "hackney"}
]}.
